package com.example.birdfriends.pojo.post;

import java.util.List;

public class PostFront {
    private Long pid;
    private String title;

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setDeleteImage(String deleteImage) {
        this.deleteImage = deleteImage;
    }

    public String getDeleteImage() {
        return deleteImage;
    }

    private String theme;  // 帖子主题：提问，日常，活动，科普
    private String content;
    private String createAt;
    private List<String> images;
    private List<String> videos;
    private Long likes;
    private Long comments;
    private Long readers;
    private boolean isActive;
    private String likeIcon;
    private List<String> previewImages;

    private String deleteImage;

    private String curPage;  // 当前页
    private Long curPageNumber;
    private String tabName;

    private String searchContent;

    public void setSearchContent(String searchContent) {
        this.searchContent = searchContent;
    }

    public String getSearchContent() {
        return searchContent;
    }

    public String getTabName() {
        return tabName;
    }

    public void setTabName(String tabName) {
        this.tabName = tabName;
    }

    public void setCurPageNumber(Long curPageNumber) {
        this.curPageNumber = curPageNumber;
    }

    public Long getCurPageNumber() {
        return curPageNumber;
    }

    public void setCurPage(String curPage) {
        this.curPage = curPage;
    }

    public String getCurPage() {
        return curPage;
    }

    public Long getCurLoginUid() {
        return curLoginUid;
    }

    public void setCurLoginUid(Long curLoginUid) {
        this.curLoginUid = curLoginUid;
    }

    private Long curLoginUid;  // 当前登录的用户id

    public void setPreviewImages(List<String> previewImages) {
        this.previewImages = previewImages;
    }

    public List<String> getPreviewImages() {
        return previewImages;
    }

    public void setLikeIcon(String likeIcon) {
        this.likeIcon = likeIcon;
    }

    public String getLikeIcon() {
        return likeIcon;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setLikes(Long likes) {
        this.likes = likes;
    }

    public void setComments(Long comments) {
        this.comments = comments;
    }

    public void setReaders(Long readers) {
        this.readers = readers;
    }

    public Long getLikes() {
        return likes;
    }

    public Long getComments() {
        return comments;
    }

    public Long getReaders() {
        return readers;
    }

    private Long AuthorId;

    public void printPost() {
        System.out.println("PostFront{" +
                "pid=" + pid +
                ", title='" + title + '\'' +
                ", theme='" + theme + '\'' +
                ", content='" + content + '\'' +
                ", createAt='" + createAt + '\'' +
                ", images=" + images +
                ", videos=" + videos +
                ", likes=" + likes +
                ", comments=" + comments +
                ", readers=" + readers +
                ", isActive=" + isActive +
                ", likeIcon='" + likeIcon + '\'' +
                ", previewImages=" + previewImages +
                ", uid=" + AuthorId +
                '}');
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public void setTheme(String theme) {
        this.theme = theme;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public void setVideos(List<String> videos) {
        this.videos = videos;
    }

    public void setAuthorId(Long authorId) {
        this.AuthorId = authorId;
    }

    public Long getPid() {
        return pid;
    }

    public String getTheme() {
        return theme;
    }

    public String getContent() {
        return content;
    }

    public String getCreateAt() {
        return createAt;
    }

    public List<String> getImages() {
        return images;
    }

    public List<String> getVideos() {
        return videos;
    }

    public Long getAuthorId() {
        return AuthorId;
    }
}
